home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / lanuts.arc / LANTASTI.H < prev    next >
Text File  |  1991-10-30  |  2KB  |  75 lines

  1. /* structures and constants for use with LANtastic operating system */
  2. #define TRUE  1
  3. #define FALSE 0
  4.  
  5. typedef struct msg_buffer {
  6.     char reserved,
  7.          type,
  8.          destination[16],
  9.          server[16],
  10.          user[16],
  11.          sender[16],
  12.          text[80];
  13.   } MSG_BUFFER;
  14.   
  15. typedef struct queue_entry {
  16.     char status;             /* current status */
  17.     unsigned long size;      /* size in bytes */
  18.     char type,               /* type of queue entry */
  19.          control;            /* output control */
  20.          int copies;         /* number of copies */
  21.     unsigned long sequence;  /* internal sequence number */
  22.     char path[48],           /* pathname */
  23.          user[16],           /* originating user */
  24.          machine[16];        /* originating machine */
  25.     unsigned int date,       /* date and time spooled */
  26.              time;
  27.     char destination[17],    /* destination user or device */
  28.          comment[48];        /* comment field */
  29.       } QUEUE_ENTRY;          
  30.          
  31. typedef struct active_user {
  32.     unsigned int vcid;
  33.     char state,
  34.          command,
  35.          io_bytes[5],
  36.          requests[3],
  37.          name[16],
  38.          machine[16];
  39.      } ACTIVE_USER;     
  40.  
  41. /* LANOS CONFIGURATION STUFF */
  42. #define REDIR_RUNNING  0x40
  43. #define SERVER_RUNNING 0x08
  44.  
  45. #define MPB_beep 0x01
  46. #define MPB_deliver 0x02
  47.  
  48. #define PRINT_DEVICE 3
  49. #define DISK_DEVICE  4
  50.  
  51. /* queue control stuff */
  52. #define CQ_start     0
  53. #define CQ_halt      1
  54. #define CQ_halt_EOJ  2
  55. #define CQ_pause     3
  56. #define CQ_single    4
  57. #define CQ_restart   5
  58. #define CQ_cancel    6
  59. #define CQ_hold      7
  60. #define CQ_release   8
  61. #define CQ_rush      9
  62.  
  63. /* assembly language functions */
  64. int nos_present();
  65. int get_inactive_server(char *,int);
  66. int get_active_server(char *,int);
  67. int login(char *);
  68. int logout(char *);
  69. char *get_error_text(int);
  70. int redirect_device(char *,char *,int);
  71. int cancel_redirection(char *);
  72. int whoami(char *);
  73. int get_user_info(char *,int,ACTIVE_USER *);
  74. 
  75.